import request from '@/utils/request'

export function getCommentByArticle(data) {
  return request({
    url: '/comment/getCommentByArticle',
    method: 'post',
	data
  })
}

export function insertComment(data) {
  return request({
    url: '/comment/insertComment',
    method: 'post',
	data
  })
}

// 获取用户评论
export function getUserAllComment(data) {
  return request({
    url: '/comment/getUserAllComment',
    method: 'post',
	data
  })
}

// 删除评论
export function deletedComment(commentId) {
  return request({
    url: '/comment/deletedComment',
    method: 'get',
	params: {commentId}
  })
}